home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / libnspr4-0d.postinst < prev    next >
Text File  |  2009-08-10  |  683b  |  30 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. migratious_files="libnspr4.so libplc4.so libplds4.so"
  6.  
  7. if [ "$1" = "configure" ]; then
  8.  
  9.     for f in $migratious_files; do
  10.         # before new binaries get installed, we move the links
  11.         rm -f /usr/lib/XNOLDCONFIG_$f.new-migration
  12.         rm -f /usr/lib/XNOLDCONFIG_$f.0d.new-migration
  13.     done
  14. fi
  15.  
  16. if [ "$1" = "abort-upgrade" ]; then
  17.     for f in $migratious_files; do
  18.         if [ -e "/usr/lib/XNOLDCONFIG_$f.old-migration" ]; then
  19.             rm -f /usr/lib/$f
  20.             mv /usr/lib/XNOLDCONFIG_$f.old-migration /usr/lib/$f
  21.         fi
  22.         if [ -L "/usr/lib/XNOLDCONFIG_$f.0d.old-migration" ]; then
  23.             rm -f /usr/lib/$f.0d
  24.             mv /usr/lib/XNOLDCONFIG_$f.0d.old-migration /usr/lib/$f.0d
  25.         fi
  26.     done
  27. fi
  28.  
  29. #DEPHELPER#
  30.